import request from '@/utils/request'

// 查询摄影师信息列表
export function listPhotographer(query) {
  return request({
    url: '/photographer/photographer/list',
    method: 'get',
    params: query
  })
}

// 查询摄影师信息详细
export function getPhotographer(id) {
  return request({
    url: '/photographer/photographer/' + id,
    method: 'get'
  })
}

// 新增摄影师信息
export function addPhotographer(data) {
  return request({
    url: '/photographer/photographer',
    method: 'post',
    data: data
  })
}

// 修改摄影师信息
export function updatePhotographer(data) {
  return request({
    url: '/photographer/photographer',
    method: 'put',
    data: data
  })
}

// 删除摄影师信息
export function delPhotographer(id) {
  return request({
    url: '/photographer/photographer/' + id,
    method: 'delete'
  })
}
